package com.aaa.docter.controller.api;

import com.aaa.docter.service.RegistrationService;
import com.aaa.entity.HisRegistration;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/doctor/care")
public class ApiNewcareController {

    @Autowired
    private RegistrationService registrationService;

//    待就诊
    @GetMapping("/getschedulingType/{schedulingType}")
    public Result<List<HisRegistration>> getschedulingType(@PathVariable String schedulingType){
        return registrationService.getschedulingType(schedulingType);
    }
//    就诊中
    @GetMapping("/queryVisitingRegistration/{schedulingType}")
    public Result<List<HisRegistration>> queryVisitingRegistration(@PathVariable String schedulingType){
        return registrationService.queryVisitingRegistration(schedulingType);
    }


}
